import { request } from '../service'

export function menuPage (data) {
  return request({
    url: '/api/menu/page',
    method: 'post',
    params: data
  })
}

export function menuList () {
  return request({
    url: '/api/menu/all',
    method: 'get'
  })
}

export function menuAndAuth () {
  return request({
    url: '/api/menu/menuAndAuth',
    method: 'get'
  })
}

export function menuCreate (data) {
  return request({
    url: '/api/menu/create',
    method: 'post',
    params: data
  })
}

export function menuUpdate (data) {
  return request({
    url: '/api/menu/update',
    method: 'post',
    params: data
  })
}

export function interfaceAll () {
  return request({
    url: '/api/interface/all',
    method: 'get'
  })
}

export function deleteMenu (data) {
  return request({
    url: '/api/menu/deleteMenu',
    method: 'post',
    params: data
  })
}
